//Ragini Phansalkar
//CSE 2102 lab 1

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;


public class Swing_example {
	
	public static void main(String [] args) {
		JFrame exampleframe = new JFrame("FrameDemo");

		exampleframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		exampleframe.setLayout(new FlowLayout()); 

		
		exampleframe.setTitle("this is the title"); 
		exampleframe.getContentPane().add(new JTextArea("this is my swing example"), BorderLayout.CENTER);
		ImageIcon lg = new ImageIcon("uconn.jpg"); 
		JLabel lg_label = new JLabel(lg); 
		exampleframe.getContentPane().add(lg_label); 
	
		exampleframe.setSize(500,330);

		exampleframe.setVisible(true);
	}

}
